package com.weiyi.mashangzhu.Roomer.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.weiyi.mashangzhu.Base.BaseActivity;
import com.weiyi.mashangzhu.R;
import com.weiyi.mashangzhu.Utils.T;
import com.weiyi.mashangzhu.Utils.UiUtil;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class PwdSetActivity extends BaseActivity {
    String info;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pwd_set);
        ButterKnife.bind(this);
        info=getIntent().getStringExtra("info");
    }

    @OnClick({R.id.back, R.id.pwd_login, R.id.pwd_real})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.pwd_login:
                Intent intent = new Intent(this, ChangePwdActivity.class);
                intent.putExtra("info", info);
                startActivity(intent);
                break;
            case R.id.pwd_real:
                Intent intent1=new Intent(this,ChangeRealPwdActivity.class);
                intent1.putExtra("info","reset");
                startActivity(intent1);
                break;
        }
    }
}
